//
//  Sqlite.h
//  cat
//
//  Created by imera on 16/3/19.
//  Copyright © 2016年 LX. All rights reserved.
//

//sqlite3 *db;
//
//NSString *doc = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
//
//NSString *filePath = [doc stringByAppendingPathComponent:@"cat.sqlite"];
//
//const char *cfileName = filePath.UTF8String;
//
//int result = sqlite3_open(cfileName, &db);

#import <Foundation/Foundation.h>
#import <sqlite3.h>

@interface Sqlite : NSObject

/** 获得数据库句柄 */
+ (sqlite3 *)getDb;

/** 执行sql语句 */
+ (BOOL)runWithSql:(NSString *)sql;
@end
